/**
 * Created by leiweibo on 7/11/15.
 */


var app = angular.module('hospitalaggregatecontroller', []);
var count = 0;

app.controller('HosptialAggregateCtrl', function ($scope, HosptialAggregateService, $routeParams) {

  HosptialAggregateService.list_hospital_group_by_province(false, function(res, data) {

    if (res.result == true) {
      $scope.hospitalsData = res.hospitals;
      console.log('get the data:' + res);
    } else {
      $scope.error_msg = res.message;
    }
  });

});

